var customEvent = new Event('custom');
export default customEvent

document.addEventListener('custom', function(event) {
  console.log("触发了自定义事件");
});